package com.zz.ecommerce.declareManage.importB2CDeclareDirect.exception;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * Created by admin on 2016/4/1.
 */
@Repository
public interface DirectExceptionDao {

    @Insert("INSERT INTO T_DECLFORM_TASK_QDC(ID) VALUES (#{id})")
    boolean declare(@Param("id") String id);

    @Update("UPDATE T_Declform_Head_Qdc SET STATUS='E2' WHERE ID=#{id}")
    boolean changeStatus(@Param("id") String id);
}
